#!/bin/sh
if [ -z $1 ]; then
	echo "usage: $0 <file>"
	exit
fi

if [ ! -e $1 ]; then
	echo "error: file $1 not exists"
	exit
fi

cat $1 | ./parse_flags.pl | ./db_send.pl
